class A{
  int m;
  int getM() {
	return m;
  }
	int seeM(){
    return m;
  }
}
class B extends A {
	int m;
	int getM(){
		return 100+m;
  }
}
public class xiti5_7{
public static void main(String args[]){
		B b=new B();
		b.m=2;
		System.out.println(b.getM());
		A a=b;
		a.m=-5;
		System.out.println(a.getM());
		System.out.println(b.seeM());
  }
}

